package com.supcon.exchangedata.utils;

import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: yangbin
 * @Date: 2022/04/20/10:49
 * @Description:
 */
public  class DateTimeUtils {

    public static LocalDateTime timestampToLocalDateTime(Timestamp timestamp) {
        LocalDateTime localDateTime = timestamp.toLocalDateTime();
        return localDateTime;
    }

    public static Timestamp localDateTimeToTimeSTamp(LocalDateTime localDateTime) {
        Timestamp time = Timestamp.valueOf(localDateTime);
        return time;
    }

    public static void main(String[] args) {

    }
}
